<template>
  <div id="emp">
    {{ num }}
    <button @click="add1">按钮</button>
  </div>
</template>

<script>
export default {
  name: 'EmpView',
  data() {
    return {
      num: 123
    }
  },
  methods: {
    add1() {
      const x = 123
      console.log(x)
      this.num++
    }
  }
}
</script>

<style lang="less" scoped></style>
